-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redfish/drive: expose oem data and actions #366
Conversation
Signed-off-by: Matt Vandermeulen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be better addressed by adding the necessary OEM objects for this so you can access the OEM-specific properties and methods using the matching type for the hardware.
👍 I'll take a look at adding it over there. For SMC, should I follow the other pending change and use |
Hmm, good question. I don't have a strong opinion either way really. I think most folks who need it won't have any confusion equating smc to being for SuperMicro, so I'm fine with whatever you feel like doing. Thanks! |
I've added a commit that introduces the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start. A few issue with consistency with how we do things in Gofish, so just a few minor changes needed.
Thanks!
Signed-off-by: Matt Vandermeulen <[email protected]>
Signed-off-by: Matt Vandermeulen <[email protected]>
Signed-off-by: Matt Vandermeulen <[email protected]>
Signed-off-by: Matt Vandermeulen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really looking great. Love the way you are handling the changing action name so the library user doesn't need to be concerned about it.
Only thing I think is to just expose the new properties directly rather than getting them through an accessor.
Signed-off-by: Matt Vandermeulen <[email protected]>
Nice work - thanks a lot! |
No problem! Do you have a sense for when the next release will be cut? Deciding whether to use my fork for now, or wait a bit and bump the version. |
You can use Otherwise, I'm probably going to add a few more Supermicro OEM things since I now have access to the hardware, then tag a release once I get at least some of the main objects in place. So I guess whatever is more convenient for you. |
We have some nodes that don't follow the typical indicator light flow that
Update()
would handle. Instead, we have to hit a linked reference (with a variable key, sigh..) from the OEM section.I'm hoping to expose the
Oem
field in both theDrive
and theDrive.Actions
(while also exposing theActions
) so that the user can follow that chain when necessary. This allows us to get the right link to where we need to send thePOST
orPATCH
(also variable, heh) to enable lights for our datacenter folks.Tests updated to not lose secure erase functionality.